import 'package:get/get.dart';
import 'package:getx/models/domain/request/login_request.dart';
import 'package:getx/network/app_api.dart';
import 'package:getx/network/dio_client.dart';
import 'package:getx/repository/auth_repository.dart';

class AuthRepositoryImpl extends GetxService implements AuthRepository {
  @override
  Future<Map<String, dynamic>> login(LoginRequest loginRequest) async {
    var response = await DioClient().post(AppApi.login, data: loginRequest.toJson(), openLoading: true);
    return response.data;
  }
}
